package com.ellricky.baselib.adapter

import android.widget.ImageView
import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.bumptech.glide.Glide
import com.ellricky.baselib.R

class SimpleImageAdapter : BaseRecyclerAdapter<String>(R.layout.base_adapter_image) {

    override fun onBindViewHolder(p0: SmartViewHolder, p1: String, p2: Int) {
        val ivImg = p0.itemView.findViewById<ImageView>(R.id.iv_img)
        Glide.with(p0.itemView.context).load(p1).into(ivImg)
    }
}